home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGBLER
/
PC37030.LZH
/
PC37030.ZIP
/
SSP.DOC
< prev
next >
Wrap
Text File
|
1987-08-20
|
2KB
|
38 lines
SSP.DOC PC/370 Scientific Subroutine Package
Using floating point 370 instructions plus extended 80x87 function
SVC's described in FP87.DOC, a set of quite efficient scientific
subroutines have been coded in SSP.ALC and can be assembled and
added to the L370.LIB subroutine library via BLDSSP.BAT. Note
that BLDLIB.BAT does not include SSP routines to save link time
for users without 80x87 or the need for floating point functions.
Run RUNSSP.BAT to assemble, link, and execute TESTSSP.ALC program.
The argument and result is in F0 or R0 unless noted otherwise.
The SSP functions are similiar to the FORTRAN IV intrinsic functions.
FUNCTION DESCRIPTION RANGE LIMITATIONS NOTES
ATAN ARCTAN
ALOG LOG BASE E 0 < F0
ALOG10 LOG BASE 10 0 < F0
COS COSINE
EXP E ** X
REAL CVT TO REAL -2**32 <= R0 < 2**32 ARG. IN R0
INT CVT TO INT -2**32 <= F0 < 2**32 RESULT IN R0
MOD MOD(F0,F2) REMAINDER IN F0
PI PI 3.14159............. DOUBLE PREC. PI
SIN SINE
SQRT SQUARE ROOT 0 <= F0
TAN TANGENT
A future enhancement depending on interest, is to add other
derived functions. Any feedback on usage of these functions would
be appreciated. I am particularly interested in benchmarking the
80x87 microcoded support of floating point functions via PC/370
versus similiar functions on a 370 which use algorithms derived with
basic floating point add, subtract, multiply, and divide. In addition
to speed, I'm interested in any observed numerial differences for
single and double precision functions. Here's an opportunity for some
of you math majors to use some numerical analysis again.
Run RUNSSP.BAT for test and demo usage of SSP subroutines.